Versions:
Spectral is a flexible linter for JSON and YAML documents from Stoplight, made for creating automated style guides. It has built-in support for OpenAPI in versions 3.1, 3.0 and 2.0 and for AsyncAPI 2.x, and its tags also mention Arazzo and JSON Schema. A linter checks documents against a set of rules and reports violations; in Spectral these rules are collected in rulesets, where the predefined rules for API descriptions can be combined with custom rules, which use JSONPath expressions to select the parts of a document that are to be examined. In this way an organization can lay down its conventions for API design, such as naming schemes, mandatory descriptions or the structure of error responses, and have them verified automatically. Spectral belongs to the categories of API design tools and linting utilities. It is used by API designers, developers and platform teams, typically from the command line during editing and as a step in continuous integration pipelines, so that inconsistent or incomplete API descriptions are detected before they are published. The current release is version 6.17.1, and several versions are available in the catalog.
Tags: